package com.automannn.dubbo.withSpring;

import com.automannn.dubbo.api.HelloService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author automannn
 * @time 2021/8/5
 */
public class DubboRunWithSpringConsumer {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context =
                new ClassPathXmlApplicationContext("classpath:consumer.xml");

        context.start();

        HelloService helloService = (HelloService) context.getBean("helloService");
        helloService.sayHi("abaaba");
        System.out.println("微服务调用完成");
    }
}
